<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>Version Number Adder by Emlyn O'Regan</title>
	</head>
	<body>
        Version Number Adder<br />
        By Emlyn O'Regan<br />
        <br />
        Usage: vername &lt;filename&gt; &lt;versionbinary&gt;
        <ul>
            <li>
            filename: Should include the substring #vernum# to be
                replaced with a version number
            </li>
            <li>
            versionbinary: A .net binary that the version number can be
            read from
            </li>
        </ul>
        <p>
            So for example, if you're creating an installer, try naming it with #vernum# in
            the filename where you'd like a version number to go, such as the following:</p>
        <pre>
<strong>c:\mystuff\builds\something v#vernum#.msi</strong></pre>
        <p>
            Then, say the main .net binary you are including in the msi is
        </p>
        <pre>
<strong>c:\mystuff\source\something solution\something\bin\release\something.exe</strong></pre>
        <p>
            whose current version number is:</p>
        <pre>
<strong>1.0.3456.23453</strong></pre>
        <p>
            Then you can execute the following command:</p>
        <pre>
<strong>"c:\program files\emlynoregan.com\version number adder\vername" "c:\mystuff\builds\something
    v#vernum#.msi" "c:\mystuff\source\something solution\something\bin\release\something.exe"</strong></pre>
        <p>
            and it'll rename your msi to:</p>
        <strong>c:\mystuff\builds\something v1.0.3456.23453.msi<br />
            <br />
        </strong>which can be extraordinarily useful if you are automated builds and/or
        deployment. Note we are using a .net assembly version number, not an installer version
        number. This is so that you can easily make the name the same as, for example, the
        version number you display in your application's about box.
	</body>
</html>